Number format codes can consist of up to three sections separated by a semicolon (;).
数の書式コードは、セミコロン (;) で区切った最大 3 つの部分から構成されます。
In a number format code with two sections, the first section applies to positive values and zero, and the second section applies to negative values.
2 つの部分から成る数の書式コードでは、最初の部分が正の値と 0 に適用され、第 2 の部分が負の値に適用されます。
In a number format code with three sections, the first section applies to positive values, the second section to negative values, and the third section to the value zero.
3 つの部分から成る数の書式コードの場合は、最初の部分が正の値、第 2 の部分が負の値、第 3 の部分が値 0 に適用されます。
You can also assign conditions to the three sections, so that the format is only applied if a condition is met.
また、この 3 つの部分に条件を割り当てることで、その条件が満たされた場合にのみ書式を適用することもできます。
Use zero (0) or the number sign (#) as placeholders in your number format code to represent numbers. The (#) only displays significant digits, while the (0) displays zeroes if there are fewer digits in the number than in the number format.
数値を示すプレースホルダとしては、ゼロ (0) ないしナンバー記号 (#) を数の書式コードに記入します。どちらも該当桁の数字が表示されないよう指定する記号ですが、該当桁に数値が無い場合にナンバー記号は何も表示されないのに対して、ゼロは該当桁に 0 が表示されます。
Use question marks (?) to represent the number of digits to include in the numerator and the denominator of a fraction. Fractions that do not fit the pattern that you define are displayed as floating point numbers.
分数の分子と分母に含める桁数を表す場合に疑問符 (?) を使用します。ここで定義したパターンに適合しない分数は浮動小数点数として表示されます。
If a number contains more digits to the right of the decimal delimiter than there are placeholders in the format, the number is rounded accordingly. If a number contains more digits to the left of the decimal delimiter than there are placeholders in the format, the entire number is displayed. Use the following list as a guide for using placeholders when you create a number format code:
数値の小数部の桁数が、書式コードの小数部を示すプレースホルダよりも多い場合、書式コードの小数桁に合わせる形で数値は丸めて表示されます。数値の整数部の桁数が、書式コードの整数部を示すプレースホルダよりも多くても、数値の整数部はそのまま表示されます。参考用として、プレースホルダの機能と、数の書式コードの指定例を下記にまとめてあります。
|
Placeholders
|
Explanation
|
|
#
|
Does not display extra zeros.
|
|
0 (Zero)
|
Displays extra zeros if the number has less places than zeros in the format.
|
|
Number Format
|
Format Code
|
|
3456.78 as 3456.8
|
####.#
|
|
9.9 as 9.900
|
#.000
|
|
13 as 13.0 and 1234.567 as 1234.57
|
#.0#
|
|
5.75 as 5 3/4 and 6.3 as 6 3/10
|
# ???/???
|
|
.5 as 0.5
|
0.##
|
Depending on your language setting, you can use a comma or a period as a thousands separator. You can also use the separator to reduce the size of the number that is displayed by a multiple of 1000.
千単位の桁区切りを示す記号には、地域設定に応じてコンマとピリオドのいずれかを指定できます。またこれらの桁区切り記号を利用して、1000 の倍数形式で数値を表示させることもできます。
|
Number Format
|
Format Code
|
|
15000 as 15,000
|
#,###
|
|
16000 as 16
|
#,
|
To include text in a number format that is applied to a cell containing numbers, place a double quotation mark (") in front of and behind the text, or a backslash (\) before a single character. For example, enter #.# "meters" to display "3.5 meters" or #.# \m to display "3.5 m".
数値を含むセルに対して、テキストを含む数の書式を指定するには、二重引用符 (") でテキストの前後を囲みますが、単独の文字の場合はバックスラッシュ記号 (\) を前に付けるだけで済みます。たとえば、#.# "meters" という指定は「3.5 meters」のような表示となり、#.# \m という指定は「3.5 m」のような表示となります。
To include text in a number format that is applied to a cell that might contain text, enclose the text by double quotation marks (" "), and then add an at sign (@). For example, enter "Total for "@ to display "Total for December".
数の書式の中にテキスト項目を含ませるには、@記号を数の書式に挿入します。セルに入力されたテキストは@記号が表示される項目にしたがって書式化されます。その書式がテキスト項目を含まない場合、そこに入力したテキストは書式の影響を受けません。
To use a character to define the width of a space in a number format, type an underscore ( _ ) followed by the character. The width of the space varies according to the width of the character that you choose. For example, _M creates a wider space than _i.
数の書式中の間隔の幅を指定するために文字を使用する場合には、アンダーバー ( _ ) に続けて該当の文字を入力します。ここで選択する文字に応じて、表示される間隔の幅が変化します。たとえば _M では _i の場合よりも間隔が広くなります。
To set the color of a section of a number format code, insert one of the following color names in square brackets [ ]:
数の書式コードのセクションの色を設定するには、大かっこ [ ] で囲まれた次の色の名前を 1 つ挿入します。
|
CYAN
|
GREEN
|
|
BLACK
|
BLUE
|
|
MAGENTA
|
RED
|
|
WHITE
|
YELLOW
|
You can define a number format so that it only applies when the condition that you specify is met. Conditions are enclosed by square brackets [ ].
指定の条件が満たされた場合に限って適用される数の書式を定義できます。条件は大かっこ [] で囲んで指定します。
You can use any combination of numbers and the <, <=, >, >=, = and <> operators.
数字と演算子 <、<=、>、>=、=、<> を任意に組み合わせて使用できます。
For example, if you want to apply different colors to different temperature data, enter:
たとえば、気温のデータを特定の温度域ごとに色別で表示する場合は、下記のように設定します。
[BLUE][<0]#,0 "°C";[RED][>30]#,0 "°C";[BLACK]#,0 "°C"
[BLUE][<0]#,0 "°C";[RED][>30]#,0 "°C";[BLACK]#,0 "°C"
All temperatures below zero are blue, temperatures between 0 and 30 °C are black, and temperatures higher than 30 °C are red.
0 ℃未満のすべての温度が青、0 ℃以上 30 ℃以下の温度が黒、30 ℃より高い温度が赤で表示されます。
To define a number format that adds a different text to a number depending on if the number is positive, negative, or equal to zero, use the following format:
数値が正、負、0 のいずれであるかに応じて数値に異なるテキストを追加する場合、次のような数の書式を定義します。
"plus" 0;"minus" 0;"null" 0
"プラス" 0; "マイナス" 0; "null" 0
To display numbers as percentages, add the percent sign (%) to the number format.
数をパーセントで表示するには、数の書式にパーセント記号 (%) を追加します。
Scientific notation lets you write very large numbers or very small fractions in a compact form. For example, in scientific notation, 650000 is written as 6.5 x 10^5, and 0.000065 as 6.5 x 10^-5. In Office, these numbers are written as 6.5E+5 and 6.5E-5, respectively. To create a number format that displays numbers using scientific notation, enter a # or 0, and then one of the following codes E-, E+, e- or e+.
科学表記法を使用すると、何桁にもわたる大きな数字や、小数点以下何桁にもなる小さい数字を、簡潔に表示できます。たとえば科学表記法では、650000 を 6.5 × 10^5 と表記し、0.000065 を 6.5 × 10^-5 と表記します。Office の場合、これらはそれぞれ 6.5E+5 および 6.5E-5 と表記します。科学表記法を使用して数値を表示する数の書式を作成するには、# または 0 に続けて、E-、E+、e-、e+ のいずれかを指定します。
The default currency format for the cells in your spreadsheet is determined by the regional setting of your operating system. If you want, you can apply a custom currency symbol to a cell. For example, enter #,##0.00 € to display 4.50 € (Euros).
表計算ドキュメントのセルの標準通貨書式は、オペレーティングシステムの地域設定によって決定します。必要に応じて、ユーザー独自の通貨記号をセルに適用することもできます。たとえば、ユーロ通貨は、「#.##0.00 €」と入力すると、4.50 € (Euros) と表示されます。
You can also specify the locale setting for the currency by entering the locale code for the country after the symbol. For example, [$€-407] represents Euros in Germany. To view the locale code for a country, select the country in the Language list on the Numbers tab of the Format Cells dialog.
また、通貨記号のあとに国のロケールコードを入力すれば、通貨のロケール設定を指定できます。ドイツのユーロ通貨では、[$€-407] とします。国のロケールコードを確認するには、ダイアログ セルの属性 の見出し 数 のリスト 言語 で国を選択します。
To display days, months and years, use the following number format codes.
日月年を表す場合、次の数の書式コードを使用します。
![]() | Not all format codes give meaningful results for all languages.
すべての言語に対して、すべての書式コードが意味のある結果をもたらすわけではありません。 |
|
Format
|
Format Code
|
|
Month as 3.
|
M
|
|
Month as 03.
|
MM
|
|
Month as Jan-Dec
|
MMM
|
|
Month as January-December
|
MMMM
|
|
First letter of Name of Month
|
MMMMM
|
|
Day as 2
|
D
|
|
Day as 02
|
DD
|
|
Day as Sun-Sat
|
NN or DDD
|
|
Day as Sunday to Saturday
|
NNN or DDDD
|
|
Day followed by comma, as in "Sunday,"
|
NNNN
|
|
Year as 00-99
|
YY
|
|
Year as 1900-2078
|
YYYY
|
|
Calendar week
|
WW
|
|
Quarterly as Q1 to Q4
|
Q
|
|
Quarterly as 1st quarter to 4th quarter
|
QQ
|
|
Era on the Japanese Gengou calendar, single character (possible values are: M, T, S, H)
|
G
|
|
Era, abbreviation
|
GG
|
|
Era, full name
|
GGG
|
|
Number of the year within an era, without a leading zero for single-digit years
|
E
|
|
Number of the year within an era, with a leading zero for single-digit years
|
EE or R
|
|
Era, full name and year
|
RR or GGGEE
|
The above listed formatting codes work with your language version of Office. However, when you need to switch the locale of Office to another locale, you will need to know the formatting codes used in that other locale.
上に一覧された書式形式はOffice の言語と対応します。しかし、Office のロケールを 別のロケールに変える必要がある時には、そのロケールで使われている書式形式を知っておく必要があります。
For example, if your software is set to an English locale, and you want to format a year with four digits, you enter YYYY as a formatting code. When you switch to a German locale, you must use JJJJ instead. The following table lists only the localized differences.
例えば、ソフトウァエのロケールを英語に設定していて、 年を4桁の形式にしたいときは書式形式を YYYY で設定します。ロケールをドイツ語に変えたときは、年の書式を JJJJ に変えます。次の表はローカライズ時の違いだけを一覧にしてあります。
|
Locale
|
Year
|
Month
|
Day
|
Hour
|
Day Of Week
|
Era
|
|
English - en
and all not listed locales
|
Y
|
M
|
D
|
H
|
A
|
G
|
|
German - de
|
J
|
T
|
||||
|
Netherlands - nl
|
J
|
U
|
||||
|
French - fr
|
A
|
J
|
O
|
|||
|
Italian - it
|
A
|
G
|
O
|
X
|
||
|
Portuguese - pt
|
A
|
O
|
||||
|
Spanish - es
|
A
|
O
|
||||
|
Danish - da
|
T
|
|||||
|
Norwegian - no, nb, nn
|
T
|
|||||
|
Swedish - sv
|
T
|
|||||
|
Finnish - fi
|
V
|
K
|
P
|
T
|
To enter a date in a cell, use the Gregorian calendar format. For example, in an English locale, enter 1/2/2002 for Jan 2, 2002.
セルに日付を入力するには、グレゴリオ暦の書式を使用します。たとえばロケールが英語であれば、2002 年 1 月 2 日を示す日付は 1/2/2002 として入力できます。
All date formats are dependent on the locale that is set in Office - PreferencesTools - Options - Language settings - Languages. For example, if your locale is set to 'Japanese', then the Gengou calendar is used. The default date format in Office uses the Gregorian Calendar.
[PO-fuzzy@shared\01.po] ※※※未訳※※※
To specify a calendar format that is independent of the locale, add a modifier in front of the date format. For example, to display a date using the Jewish calendar format in a non-Hebrew locale, enter: [~jewish]DD/MM/YYYY.
日付の書式の前に修飾子を付けると、ロケール設定とは異なる暦での表示ができます。たとえば、ヘブライ語以外のロケール設定でユダヤ暦を使うには、[~jewish]DD/MM/YYYY とします。
|
Modifier
|
Calendar
|
|
[~buddhist]
|
Thai Buddhist Calendar
|
|
[~gengou]
|
Japanese Gengou Calendar
|
|
[~gregorian]
|
Gregorian Calendar
|
|
[~hanja] or [~hanja_yoil]
|
Korean Calendar
|
|
[~hijri]
|
Arabic Islamic Calendar, currently supported for the following locales: ar_EG, ar_LB, ar_SA, and ar_TN
|
|
[~jewish]
|
Jewish Calendar
|
|
[~ROC]
|
Republic Of China Calendar
|
If you perform a calculation that involves one or more cells using a date format, the result is formatted according to the following mappings:
日付書式の適用されたセルが計算に含まれる場合、次のマッピングに従って計算結果に書式が設定されます。
|
Initial Format
|
Result Format
|
|
Date + Date
|
Number (Days)
|
|
Date + Number
|
Date
|
|
Date + Time
|
Date&Time
|
|
Date + Date&Time
|
Number
|
|
Time + Time
|
Time
|
|
Time + Number
|
Time
|
|
Time + Date&Time
|
Date&Time
|
|
Date&Time + Date&Time
|
Time
|
|
Date&Time + Number
|
Date&Time
|
|
Number + Number
|
Number
|
The Date&Time format displays the date and time that an entry was made to a cell with this format.
Date&Time書式では、セルに入力された日付および時刻がこの書式で表示されます。
![]() | In Office, a date with the value "0" corresponds to Dec 30, 1899.
Office では、数値の「0」は 1899 年 12 月 30 日として扱われます。 |
To display hours, minutes and seconds use the following number format codes.
時分秒を表す場合、次の数の書式コードを使用します。
|
Format
|
Format Code
|
|
Hours as 0-23
|
h
|
|
Hours as 00-23
|
hh
|
|
Minutes as 0-59
|
m
|
|
Minutes as 00-59
|
mm
|
|
Seconds as 0-59
|
s
|
|
Seconds as 00-59
|
ss
|
![]() | To display seconds as fractions, add the decimal delimiter to your number format code. For example, enter hh:mm:ss.00 to display the time as "01:02:03.45".
秒を小数表示させるには、数の書式コードに小数点を加えます。たとえば、hh:mm:ss.00 と入力すると時刻は「01:02:03.45」のように表示されます。 |
If a time is entered in the form 02:03.45 or 01:02:03.45 or 25:01:02, the following formats are assigned if no other time format has been specified: MM:SS.00 or [HH]:MM:SS.00 or [HH]:MM:SS
時刻を 02:03.45 や 01:02:03.45 や 25:01:02 などの形式で入力すると、他の時刻の書式が指定されていない限り、時刻の書式は MM:SS.00 か [HH]:MM:SS.00 か [HH]:MM:SS が適用されます。
To display numbers using native number characters, use a [NatNum1], [NatNum2], ... [NatNum11] modifier at the beginning of a number format codes.
数値を各国語固有の数字で表示させるには、[NatNum1]、[NatNum2]...、[NatNum11] 修飾子を、数の書式コードの前に付けます。
The [NatNum1] modifier always uses a one to one character mapping to convert numbers to a string that matches the native number format code of the corresponding locale. The other modifiers produce different results if they are used with different locales. A locale can be the language and the territory for which the format code is defined, or a modifier such as [$-yyy] that follows the native number modifier. In this case, yyy is the hexadecimal MS-LCID that is also used in currency format codes. For example, to display a number using Japanese short Kanji characters in an English US locale, use the following number format code:
コードには、ロケール設定に応じて異なった意味があります。[NatNum1] は常に、ロケール設定の数のモードに対応し、1:1 の数配置となる数字列に変換します。ロケール設定は言語、書式コードを専用に定義した国、または国ナンバー補足のあとにくるロケール設定補足 [$-yyy] (yyy は16進法の MS-LCID で、通貨書式コードにも使用される) によって決まります。たとえば、日本の漢字書式の数を英語 (米国) ロケール設定の書式に変更するには、次のコードを使います。
[NatNum1][$-411]0
[NatNum1][$-411]0
In the following list, the Microsoft Excel [DBNumX] modifier that corresponds to Office [NatNum] modifier is shown. If you want, you can use a [DBNumX] modifier instead of [NatNum] modifier for your locale. Whenever possible, Office internally maps [DBNumX] modifiers to [NatNumN] modifiers.
下記の一覧は、Office の [NatNum] 修飾子に対応する Microsoft Excel の [DBNumX] 修飾子を示したものです。必要であれば、[NatNum] 修飾子の代わりに [DBNumX] 修飾子をロケール指定に使用することもできます。Office は内部的な変換を行い、可能な限り [DBNumX] 修飾子を [NatNumN] 修飾子へマッピングするよう試みます。
Displaying dates using [NatNum] modifiers can have a different effect than displaying other types of numbers. Such effects are indicated by 'CAL: '. For example, 'CAL: 1/4/4' indicates that the year is displayed using the [NatNum1] modifier, while the day and month are displayed using the [NatNum4] modifier. If 'CAL' is not specified, the date formats for that particular modifier are not supported.
[NatNum] 修飾キーを使用して日付を表示させると、ほかの種類の数値とは別の効果を加えることができます。そのような効果は、「CAL: 」で示されます。たとえば、「CAL: 1/4/4」は、年を、[NatNum1] 修飾キーで表示し、日と月を [NatNum4] 修飾キーで表示することを示します。「CAL」を指定しないと、特定の修飾キーに対する日付書式はサポートされません。
|
Chinese: Chinese lower case characters; CAL: 1/7/7 [DBNum1]
|
|
Japanese: short Kanji characters [DBNum1]; CAL: 1/4/4 [DBNum1]
|
|
Korean: Korean lower case characters [DBNum1]; CAL: 1/7/7 [DBNum1]
|
|
Thai: Thai characters
|
|
Arabic: Indic characters
|
|
Indic: Indic characters
|
|
Hebrew: Hebrew letters
|
|
[NatNum2] Transliteration in
|
|
Chinese: Chinese upper case characters; CAL: 2/8/8 [DBNum2]
|
|
Japanese: traditional Kanji characters; CAL: 2/5/5 [DBNum2]
|
|
Korean: Korean upper case characters [DBNum2]; CAL: 2/8/8 [DBNum2]
|
|
[NatNum3] Transliteration in
|
|
Chinese: fullwidth Arabic digits; CAL: 3/3/3 [DBNum3]
|
|
Japanese: fullwidth Arabic digits; CAL: 3/3/3 [DBNum3]
|
|
Korean: fullwidth Arabic digits [DBNum3]; CAL: 3/3/3 [DBNum3]
|
|
[NatNum4] Transliteration in
|
|
Chinese: lower case text [DBNum1]
|
|
Japanese: modern long Kanji text [DBNum2]
|
|
Korean: formal lower case text
|
|
[NatNum5] Transliteration in
|
|
Chinese: Chinese upper case text [DBNum2]
|
|
Japanese: traditional long Kanji text [DBNum3]
|
|
Korean: formal upper case text
|
|
[NatNum6] Transliteration in
|
|
Chinese: fullwidth text [DBNum3]
|
|
Japanese: fullwidth text
|
|
Korean: fullwidth text
|
|
[NatNum7] Transliteration in
|
|
Japanese: modern short Kanji text
|
|
Korean: informal lower case text
|
|
[NatNum8] Transliteration in
|
|
Japanese: traditional short Kanji text [DBNum4]
|
|
Korean: informal upper case text
|
|
[NatNum9] Transliteration in
|
|
Korean: Hangul characters
|
|
[NatNum10] Transliteration in
|
|
Korean: formal Hangul text [DBNum4]; CAL: 9/11/11 [DBNum4]
|
|
[NatNum11] Transliteration in
|
|
Korean: informal Hangul text
|